<template>
  <div class="con">
    <a-tabs size="mini" style="background-color: white" v-model:active-key="activePage">
      <a-tab-pane key="WarehouseList" title="仓库列表"> </a-tab-pane>
      <a-tab-pane key="SpaceList" title="仓位列表"> </a-tab-pane>
    </a-tabs>
  </div>
  <!-- <component :is="activePage" /> -->
  <WarehouseList v-if="activePage == 'WarehouseList'" />
  <SpaceList v-else />
</template>

<script lang="ts">
  import { defineComponent, ref } from 'vue'
  import WarehouseList from './warehouseList.vue'
  import SpaceList from './spaceList.vue'
  export default defineComponent({
    components: {
      WarehouseList,
      SpaceList,
    },
    setup() {
      let activePage = ref('WarehouseList')
      return {
        activePage,
      }
    },
  })
</script>

<style lang="less" scoped>
  .con {
    width: 100%;
    height: 32px;
    background-color: white;
  }
</style>
